package com.etone.smartAudit.dto.adminMenu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020/12/18
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "菜单表单")
public class AdminMenuDTO implements Serializable {

    @ApiModelProperty("菜单名称")
    @NotEmpty
    private String title;

    @ApiModelProperty("菜单url")
    @NotEmpty
    private String url;

    @ApiModelProperty("父级菜单")
    private Integer pId;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("权限id")
    private List<Integer> permissionIds;
}
